From 96b370c3618323074aa4110ee6b3d2be47634665 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Fri, 1 Apr 2016 17:53:55 +0100 Subject: [PATCH] libxc: xc_domain_resume_hvm is used by x86 only The call site is enclosed by x86 define guards. Without this patch: [ 334s] xc_resume.c:112:12: error: 'xc_domain_resume_hvm' defined but not used [-Werror=unused-function] [ 334s] static int xc_domain_resume_hvm(xc_interface *xch, uint32_t domid) Reported-by: Olaf Hering Signed-off-by: Wei Liu --- tools/libxc/xc_resume.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/libxc/xc_resume.c b/tools/libxc/xc_resume.c index 6bf7d9c948..2b6c308369 100644 --- a/tools/libxc/xc_resume.c +++ b/tools/libxc/xc_resume.c @@ -109,6 +109,7 @@ static int xc_domain_resume_cooperative(xc_interface *xch, uint32_t domid) return do_domctl(xch, &domctl); } +#if defined(__i386__) || defined(__x86_64__) static int xc_domain_resume_hvm(xc_interface *xch, uint32_t domid) { DECLARE_DOMCTL; @@ -128,6 +129,7 @@ static int xc_domain_resume_hvm(xc_interface *xch, uint32_t domid) domctl.domain = domid; return do_domctl(xch, &domctl); } +#endif static int xc_domain_resume_any(xc_interface *xch, uint32_t domid) { -- 2.30.2